using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace QLTDK.Utilities
{
    public class XMLProvider
    {
        private XmlDocument doc;

        public XmlDocument Doc
        {
            get { return doc; }
        }

        public XMLProvider(String path)
        {
            doc = new XmlDocument();
            try
            {
                doc.Load(path);
            }
            catch(Exception ex)
            {
                throw ex;
            }
        }

        public XmlElement GetRoot()
        {
            return doc.DocumentElement;
        }
    }
}
